import request from '@/utils/request'



// 通过
export function pass(data) {
  return request({
    url: '/system/payWithdraw/pass',
    method: 'post',
    data: data
  })
}


// 拒绝
export function refuse(data) {
  return request({
    url: '/system/payWithdraw/refuse',
    method: 'post',
    data: data
  })
}


// 查询支付-提现列表
export function listPayWithdraw(query) {
  return request({
    url: '/system/payWithdraw/list',
    method: 'get',
    params: query
  })
}

// 查询支付-提现详细
export function getPayWithdraw(id) {
  return request({
    url: '/system/payWithdraw/' + id,
    method: 'get'
  })
}

// 新增支付-提现
export function addPayWithdraw(data) {
  return request({
    url: '/system/payWithdraw',
    method: 'post',
    data: data
  })
}

// 修改支付-提现
export function updatePayWithdraw(data) {
  return request({
    url: '/system/payWithdraw',
    method: 'put',
    data: data
  })
}

// 删除支付-提现
export function delPayWithdraw(id) {
  return request({
    url: '/system/payWithdraw/' + id,
    method: 'delete'
  })
}
